#ifndef QDOUBANRADIO_H
#define QDOUBANRADIO_H

#include <QWidget>

class QWebView;
class QUrl;
class QCloseEvent;
class QDoubanRadio : public QWidget {
    Q_OBJECT
public:
    QDoubanRadio(QWidget *parent = 0);
    ~QDoubanRadio();

protected:
    void closeEvent(QCloseEvent *event);

private:
    void load_cookies();
    void save_cookies();

public slots:
    void load_finished();

private:
    QWebView* view;
};

#endif // QDOUBANRADIO_H
